package com.lolong.controller;

public class WeatherMessageHandler {
	
	private String clothingSuggestion;

	public String getClothingSuggestion() {
		
		return clothingSuggestion;
	}

	public void setClothingSuggestion(String clothingSuggestion) {
		
		this.clothingSuggestion = clothingSuggestion;
	}
	
	public void generateClothingSuggestion(String parsedForecast) {
		
		//Cloudy
		if(parsedForecast.equals("Mostly Cloudy") || parsedForecast.equals("Cloudy") || parsedForecast.equals("Partly Cloudy") 
				|| parsedForecast.equals("Overcast") || parsedForecast.equals("Haze") || parsedForecast.equals("Fog")) {
			
			this.setClothingSuggestion("Hey! It's kinda cloudy outside, Wag ka na magdala ng payong.");
		
		//Rainy	
		} else if(parsedForecast.equals("Light Rain") || parsedForecast.equals("Rain") || parsedForecast.equals("Rain Showers")
				|| parsedForecast.equals("Showers") || parsedForecast.equals("Thunderstorm") || parsedForecast.equals("Scattered Showers")
				|| parsedForecast.equals("Chance of Showers") || parsedForecast.equals("Chance of Storm")) {
			
			this.setClothingSuggestion("Hey! It might rain today, you should probably bring an umbrella and wear closed shoes.");
		
		//Sunny
		} else if(parsedForecast.equals("Clear") || parsedForecast.equals("Mostly Sunny") || parsedForecast.equals("Sunny") ||
				parsedForecast.equals("Partly Sunny")) {
			
			this.setClothingSuggestion("Great weather we're having today! Wear something comfortable. :)");
			
		} else {
			
			this.setClothingSuggestion("Woops! Sorry i can't suggest anything. It seems there's a problem with my psychic powers.");
		}
	}
}
